package com.huirui.server.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

@Data
@Schema(description = "确认发货请求参数DTO")
public class ConfirmShipmentDto {

    @NotNull(message = "订单ID不能为空")
    @Schema(description = "订单ID", example = "10086", requiredMode = Schema.RequiredMode.REQUIRED)
    private Long orderId;

    @NotNull(message = "配送方式不能为空")
    @Schema(
            description = "配送方式（1：快递配送，2：自提，3：同城配送等）",
            example = "1",
            requiredMode = Schema.RequiredMode.REQUIRED,
            allowableValues = {"1", "2", "3"}
    )
    private Integer deliveryType;

    @Schema(
            description = "快递单号（配送方式为快递时必填）",
            example = "SF1234567890123",
            requiredMode = Schema.RequiredMode.NOT_REQUIRED
    )
    private String trackingNumber;
}
